package com.fusheng.springcloud.dao;


import com.fusheng.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository //对应存储层Bean 不使用@Repository注解，idea会报警告，提示找不到这个bean，直接忽略即可。
public interface DeptDao {

    public boolean addDept(Dept dept);

    public Dept queryById(Long id);

    public List<Dept> queryAll();
}
